<?php $this->load->view('global_header'); ?>
<link rel="stylesheet" type="text/css" href="/assets/css/header.css"/>
<div class="actions">
    <a href="http://www.90law.com/admin.php?c=header&m=edit&id=<?php echo $header->id; ?>">修改</a>
</div>

<div class="header">
    <?php if($photo = $this->photo->find($header->photo_id)): ?>
        <img src="/assets/images/uploads/<?php echo $photo->file_name; ?>" alt="<?php echo $photo->label; ?>"/>
    <?php endif; ?>
    <p><?php echo $header->content; ?></p>
    <div class="footer clear">
        <div class="time">创建于：<?php echo $header->created_at; ?></div>
    </div>
</div>

<?php $this->load->view('global_footer'); ?>